<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('详情')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-volunteer-edit" th:object="${vtspVolunteer}">
        <input name="volunteerId" th:field="*{volunteerId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿者编号：</label>
            <div class="col-sm-8">
                <input name="volunteerCode" th:field="*{volunteerCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿者姓名：</label>
            <div class="col-sm-8">
                <input name="volunteerName" th:field="*{volunteerName}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿者学历：</label>
            <div class="col-sm-8">
                <select name="volunteerDegree" class="form-control m-b" th:with="type=${@dict.getType('degree')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{volunteerDegree}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">性别名称：</label>
            <div class="col-sm-8">
                <input name="sexName" th:field="*{sexName}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">部门名称：</label>
            <div class="col-sm-8">
                <input name="sectorName" th:field="*{sectorName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿者学号：</label>
            <div class="col-sm-8">
                <input name="volunteerNo" th:field="*{volunteerNo}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">职务名称：</label>
            <div class="col-sm-8">
                <input name="dutiesName" th:field="*{dutiesName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">出生日期：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    <input name="volunteerBirthday" th:value="${#dates.format(vtspVolunteer.volunteerBirthday, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿者级时：</label>
            <div class="col-sm-8">
                <input name="volunteerLevel" th:field="*{volunteerLevel}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">联系电话：</label>
            <div class="col-sm-8">
                <input name="volunteerPhone" th:field="*{volunteerPhone}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所在地：</label>
            <div class="col-sm-8">
                <input name="volunteerArea" th:field="*{volunteerArea}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所在学院：</label>
            <div class="col-sm-8">
                <input name="volunteerAcademy" th:field="*{volunteerAcademy}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">电子邮箱：</label>
            <div class="col-sm-8">
                <input name="volunteerEmail" th:field="*{volunteerEmail}" class="form-control" type="text" required>
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">证件类型：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <select name="cardType" class="form-control m-b" required>-->
<!--                    <option value="">所有</option>-->
<!--                </select>-->
<!--                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
<!--            </div>-->
<!--        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">证件号码：</label>
            <div class="col-sm-8">
                <input name="cardNo" th:field="*{cardNo}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿者专业：</label>
            <div class="col-sm-8">
                <input name="volunteerProfession" th:field="*{volunteerProfession}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">入队时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    <input name="volunteerDate" th:value="${#dates.format(vtspVolunteer.volunteerDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所在班级：</label>
            <div class="col-sm-8">
                <input name="volunteerClass" th:field="*{volunteerClass}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否工作：</label>
            <div class="col-sm-8">
                <input name="isWork" th:field="*{isWork}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">工作单位：</label>
            <div class="col-sm-8">
                <input name="workPlace" th:field="*{workPlace}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">工作方向：</label>
            <div class="col-sm-8">
                <input name="workTrend" th:field="*{workTrend}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">兴趣特长：</label>
            <div class="col-sm-8">
                <textarea name="volunteerSpecialty" class="form-control">[[*{volunteerSpecialty}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">服务时长：</label>
            <div class="col-sm-8">
                <input name="serveTime" th:field="*{serveTime}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">个人简介：</label>
            <div class="col-sm-8">
                <textarea name="volunteerSynopsis" class="form-control">[[*{volunteerSynopsis}]]</textarea>
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">状态：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="memberState" th:field="*{memberState}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <textarea name="memo" class="form-control">[[*{memo}]]</textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
  var prefix = ctx + "epms/volunteer";
  $("#form-volunteer-edit").validate({
    focusCleanup: true
  });

  function submitHandler() {
    // if ($.validate.form()) {
    //   $.operate.save(prefix + "/edit", $('#form-volunteer-edit').serialize());
    // }
    $.modal.close();
  }

  $("input[name='volunteerBirthday']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='volunteerDate']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });
</script>
</body>
</html>
